package org.example.study.liaoxuefeng.ThreadSynchronization;

/**
 * @author: 默苍璃
 * @date: 2023-05-23 16:55
 */
public class AddThread extends Thread {

    public void run() {
        for (int i = 0; i < 10000; i++) {
            synchronized (Counter.lock) {
                Counter.count += 1;
            }
        }
    }

}
